package com.bw.dao;

import com.bw.bean.User;
import org.springframework.stereotype.Repository;

@Repository
public class UserDaoImp implements UserDao {
    public String login(String name, String password) {
        System.out.println("dao层登录");
        return name + password;
    }

    public String add(User user) {

        System.out.println("dao层添加");
        return user.getName();

    }
}
